import React, { createContext } from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { BrowserRouter,HashRouter } from 'react-router-dom'
// 数据持久化插件
import { PersistGate } from 'redux-persist/integration/react'
import { persistor } from './store/index'
import store from './store/index'

var context = createContext()
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <HashRouter >
    <context.Provider store={store} value="">
      <PersistGate loading={null} persistor={persistor}>
        <App />
      </PersistGate>
    </context.Provider>
  </HashRouter>
);

reportWebVitals();
